import OpenAI from "openai";

const openai = new OpenAI({
  baseURL: 'https://api.deepseek.com',
  apiKey: 'sk-d37ca16ec67d4845aafbf3bf06358b8a'
});

async function main() {
  const completion = await openai.chat.completions.create({
    messages: [{ role: "system", content: "你是怎么看待吸引力法则的？这是伪科学吗？给出详细证明，然后给出所有的显化的方式，至少六种，详细易懂的介绍操作步骤，给出贴切操作案例" }],
    model: "deepseek-chat",
    // messages: [
    //   { role: "system", content: "你是一个精准全面的八字命理师" },
    //   { role: "user", content: "我的八字是乙亥辛巳甲辰庚午，详细分析这个八字的人生运势" },
    // ],
    // model: "deepseek-reasoner",
    prefix_completion: true 
  });

  console.log('@@@响应内容 ---： ', completion.choices[0].message.content);

  console.log("res === : ", completion.choices)
}

main();